﻿using System;
using System.Windows;
using System.Windows.Media;

namespace TextEditor.TextBoxInner.DrawingElements
{
	internal class VerticalLine : DrawingVisual
	{
		private readonly Pen _pen = new Pen(Brushes.Black, 1);

		public VerticalLine()
		{
			DrawingContext drawing = RenderOpen();

			try
			{
				drawing.DrawLine(_pen, new Point(), new Point(0, SystemParameters.PrimaryScreenHeight));
			}
			finally
			{
				drawing.Close();
			}
		}
	}
}
